package com.ynny.chapter03.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class HelloController {

    @GetMapping("/hi")
    public String hello(){

        return "hello";//返回   /templates/ +  hello  + .html
    }
}
